<h1>
    <? if (!$this->post): ?>
    <?= $this->partial('user/navigation4user.phtml') ?>
    <? endif ?>
    <? $style = !($this->post) ? 'style="display: none;"' : null ?>
    <div id="form-charge" <?= $style ?>>
        <?= $this->form ?>
    </div>
    <br>
</h1>
<?
$user = $this->user;
?>

<? if (empty($user['avatar'])) : ?>
<h1>No avatar</h1>
<? else: ?>
<img src="<?= $user['avatar']?>" class="avatar" alt="<?= $user['nick'] ?>"/>
<? endif; ?>

<h1>Hello, <?= $user['name'] ?>!
    <br>
    You money: <span style="color:orange; font-size: 20px;"> <?= $user['money'] ?> piastres</span><br><br>
</h1>

<h1>
    <?=  $this->coords  ?>
</h1>
